package com.sunny.wordstudy;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import android.widget.TwoLineListItem;
import java.util.List;

public class WordStudyCmdArrayAdaper extends ArrayAdapter<WordStudyCmd>
{
  private final int resourceId;

  public WordStudyCmdArrayAdaper(Context paramContext, int paramInt, List<WordStudyCmd> paramList)
  {
    super(paramContext, paramInt, paramList);
    this.resourceId = paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    WordStudyCmd localWordStudyCmd = (WordStudyCmd)getItem(paramInt);
    Object localObject;
    if (localWordStudyCmd == null)
    {
      localObject = null;
      label18: return localObject;
    }
    LayoutInflater localLayoutInflater = (LayoutInflater)getContext().getSystemService("layout_inflater");
    if (paramView == null);
    for (TwoLineListItem localTwoLineListItem = (TwoLineListItem)localLayoutInflater.inflate(this.resourceId, paramViewGroup, false); ; localTwoLineListItem = (TwoLineListItem)paramView)
    {
      if (localTwoLineListItem.getText1() != null)
        localTwoLineListItem.getText1().setText(localWordStudyCmd.getCmdTitle());
      if (localTwoLineListItem.getText2() != null)
        localTwoLineListItem.getText2().setText(localWordStudyCmd.getCmdDesc());
      localObject = localTwoLineListItem;
      break label18:
    }
  }
}

/* Location:           E:\Desktop\Android\yanguangbeidanci\classes_dex2jar.jar
 * Qualified Name:     com.sunny.wordstudy.WordStudyCmdArrayAdaper
 * JD-Core Version:    0.5.3
 */